fix: inconsistent close button size on swaps #21615
Open
+1,125
−1,220
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



Description
Fix the inconsistent size of the close button in the "Swap" page "Select Token" bottom sheet and "Select Network" bottom sheet. We also took some time to refactor
BridgeNetworkSelectorBaseto use components from the design system similar to howBridgeTokenSelectorBasedoes it.Changelog
CHANGELOG entry: Fix the inconsistent size of the close button in the "Swap" page "Select Token" bottom sheet and "Select Network" bottom sheet.
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/SWAPS-3186
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Standardizes close button sizing in Swap/Bridge token and network selectors and refactors the network selector base to the design-system header.
32x32with24pxicon viaButtonIconSizes.LginBridgeTokenSelectorBaseandBridgeNetworkSelectorBase(affects source/dest token and network selectors).BridgeNetworkSelectorBaseto useBottomSheetHeader; remove customBox/useStyles, simplify header layout and content scroll.BridgeSource/DestTokenSelectorandBridgeSource/DestNetworkSelectorto reflect header/layout and button size changes.TokenInputArea.test.tsx.FontPreloader.preloadFontsNative.Written by Cursor Bugbot for commit 0925372. This will update automatically on new commits. Configure here.